import { AxiosRequestConfig } from "axios";

/**
 * 发送请求时的第三个参数
 */
export interface HttpRequestConfig extends AxiosRequestConfig {
	//是否显示request loading
	showLoading?: boolean;
	[propName: string]: any;
}

/**
 * 请求响应参数(不包含data)
 */
export interface Result {
	code: string;
	msg: string;
}

/**
 * 请求响应参数(包含data)
 */
export interface ResultData<T = any> extends Result {
	data?: T;
}
